using System;

using GURUCORE.Framework.Core;
using GURUCORE.Framework.Business;
using GURUCORE.Framework.Business.Security;

using GURUCORE.Portal.Service.Business.DTO;

namespace GURUCORE.Portal.Service.Business
{
	public class PortalSecurityService : BusinessService, IPortalSecurityService
	{
		[TransactionBound]
		public virtual bool PageIsAllowed(PageDTO p_dtoPage, int p_nUserID)
		{
			PermissionChecker oPermChker = new PermissionChecker();
			return oPermChker.CheckPermission<PageDTO>(p_dtoPage, p_nUserID, CONST.PERMISSION_ACCESS_PAGE, PageDTO.PAGEID_FLD);
		}
	}
}
